package com.example.hospitallogin.modules.register.service;

import com.example.hospitallogin.modules.register.dao.entity.HospitalRegisterEntity;
import com.example.hospitallogin.modules.register.dao.mapper.HospitalRegisterMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2022/9/15
 */
@Repository
public class RegisterHospitalService {
    @Autowired
    HospitalRegisterMapper hospitalRegisterMapper;

    public void insertSelective(HospitalRegisterEntity hospitalRegisterEntity) {
        hospitalRegisterMapper.insertSelective(hospitalRegisterEntity);
    }

    public List<HospitalRegisterEntity> selectByExample(Example example){
        return hospitalRegisterMapper.selectByExample(example);
    }

    public void deleteByExample(Example example){
        hospitalRegisterMapper.deleteByExample(example);
    }
}
